//
//  XFDraggableView.h
//  FreeTime
//
//  Created by 王江华 on 16/8/26.
//  Copyright © 2016年 SRDZ.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XFOverlayView.h"
#import "MWMainUserModel.h"


@protocol YHDraggableViewDelegate <NSObject>

-(void)cardSwipedLeft:(UIView *)card;
-(void)cardSwipedRight:(UIView *)card;
-(void)cardView:(UIView *)card didselectHeadImageWithId:(NSString *)userId;

@end






@interface XFDraggableView : UIView


@property(nonatomic,assign)id <YHDraggableViewDelegate> delegate;


@property(nonatomic,strong)NSString *imageName;
@property(nonatomic,strong)UIImageView *heartImageView;
@property(nonatomic,strong)XFOverlayView *overlayView;

-(void)leftClickAction;
-(void)rightClickAction;
-(void)setDraggalbleViewWithModel:(MWMainUserModel *)model;


@end
